body {
    margin: 0;
    padding: 0;
    background: url('assets/bg.jpg') center center/cover no-repeat, linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-blend-mode: darken;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    user-select: none;
    color: #fff;
    min-height: 100vh;
    height: 100vh;
}

html {
    height: 100%;
    overflow: hidden;
}

#login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    width: 360px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2),
                inset 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.2),
                    inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
    to {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.3),
                    inset 0 0 30px rgba(0, 255, 255, 0.2);
    }
}

.login-box h2 {
    color: #00ffff;
    margin-bottom: 30px;
    text-shadow: 0 0 10px #00ffff;
    font-size: 2.5em;
    letter-spacing: 2px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.login-box input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.login-box button {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #00ffff, #00bfff);
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.login-box .switch-form {
    color: #00ffff;
    cursor: pointer;
    margin-top: 15px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.login-box .switch-form:hover {
    text-shadow: 0 0 10px #00ffff;
}

.error-message {
    color: #ff4444;
    margin: 10px 0;
    display: none;
    font-size: 0.9em;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

#game-container {
    position: relative;
    width: 90vw;
    max-width: 1000px;
    min-height: 600px;
    height: auto;
    margin: 50px auto;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 30px;
}

#game-canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    height: auto;
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: white;
    backdrop-filter: blur(5px);
    padding-bottom: 50px;
}

#start-screen h1 {
    font-size: 48px;
    color: #00ffff;
    margin-bottom: 30px;
    text-shadow: 0 0 20px #00ffff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
}

#start-screen button {
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(45deg, #00ffff, #00bfff);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#start-screen button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.game-over {
    color: #ff4444;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.victory {
    color: #00ffff;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    text-shadow: 0 0 20px #00ffff;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.invincible {
    animation: blink 0.2s infinite;
}

@keyframes blink {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

#stats-chart {
    width: 90%;
    min-width: 320px;
    max-width: 900px;
    height: 320px;
    max-height: 50vh;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}